package ${config.basePackage}.mapper;

import ${config.basePackage}.model.entity.${table.className}Entity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import java.util.Map;


/**
 * ${table.comment} Mapper 接口
 *
 * @author ${config.author}
 * @date ${.now?string("yyyy年MM月dd日 HH:mm:ss")}
 * @since JDK 17
 */
@Mapper
public interface ${table.className}Mapper {

    /**
     * 查询符合条件的所有${table.comment}记录
     *
     * @author ${config.author}
     * @param map 查询条件
     * @return 返回${table.comment}列表
     */
    List<${table.className}Entity> listByConditions(Map<String, Object> map);

    /**
     * 新增${table.comment}记录
     *
     * @author ${config.author}
     * @param ${table.className?uncap_first}Entity ${table.comment}对象
     * @return 影响行数
     */
    int save(${table.className}Entity ${table.className?uncap_first}Entity);

    /**
    * 更新${table.comment}记录
    *
    * @author ${config.author}
    * @param ${table.className?uncap_first}Entity ${table.comment}实体类
    * @return 影响行数
    */
    int update(${table.className}Entity ${table.className?uncap_first}Entity);
}
